package com.salary.model;

/**
 * 工资计算结果类，表示每个业务员的最终工资和序号
 */
public class SalaryResult {
    private int id; // 序号
    private String salesperson; // 业务员
    private double commission; // 提成（最终计算结果）
    private double policyRewardPenalty; // 政策奖惩

    public SalaryResult() {
    }

    public SalaryResult(int id, String salesperson, double commission, double policyRewardPenalty) {
        this.id = id;
        this.salesperson = salesperson;
        this.commission = commission;
        this.policyRewardPenalty = policyRewardPenalty;
    }

    // Getters and Setters
    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public String getSalesperson() {
        return salesperson;
    }

    public void setSalesperson(String salesperson) {
        this.salesperson = salesperson;
    }

    public double getCommission() {
        return commission;
    }

    public void setCommission(double commission) {
        this.commission = commission;
    }

    public double getPolicyRewardPenalty() {
        return policyRewardPenalty;
    }

    public void setPolicyRewardPenalty(double policyRewardPenalty) {
        this.policyRewardPenalty = policyRewardPenalty;
    }

    @Override
    public String toString() {
        return "SalaryResult{" +
                "id=" + id +
                ", salesperson='" + salesperson + '\'' +
                ", commission=" + commission +
                ", policyRewardPenalty=" + policyRewardPenalty +
                '}';
    }
} 